﻿using System.Web.Mvc;

namespace HynuIOTA.Web.Areas.Users
{
    public class UsersAreaRegistration : AreaRegistration
    {
        public override string AreaName => "Users";

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                name: "Users_default",
                url: "Users/{controller}/{action}/{id}",
                defaults: new { controller = "User", action = "Login", id = UrlParameter.Optional },
                namespaces: new string[] { "HynuIOTA.Web.Areas.Users.Controllers" }
            ).DataTokens["UseNamespaceFallback"] = false;
        }
    }
}